package com.echofa.sealedghost.volleydemo;

import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by SealedGhost on 2017/10/19.
 */

public class MyApplication extends Application {
    private static MyApplication mInstance;
    private  static Context context;

    @Override
    public void onCreate(){
        Log.d("MyApplication", "OnCreate");
        super.onCreate();
        context  = getApplicationContext();
        mInstance  = this;
    }



    public static MyApplication getInstance() {
        return mInstance;
    }


    public static Context  getContext(){
        return context;
    }
}
